/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view;

import GUI.JFrameBase;

/**
 *
 * @author aeguzkiza
 */
public class Acquisition {
    JFrameBase frame;
    boolean isWorklist;
    String laterality;
    String time;
    Integer id;

    Acquisition(String laterality, String time, Integer id, boolean isWorklist) {
        this.laterality = laterality;
        this.time = time;
        this.id = id;
        this.isWorklist = isWorklist;
    }
    /*public String allAboutMe() {
        return "Date: " + date + ", ID: " + id;
    }*/
    public Integer getAcquisitionId(){
        return id;
    }
    public String getTime() {
        return time;
    }
    public void setTime(String time) {
        this.time = time;
    }
    public void setLaterality(String laterality) {
        this.laterality = laterality;
    }
    public boolean isWorklist() {
        return isWorklist;
    }
    public String toString() {
        String node = laterality+" "+time;
        if(laterality.equals(frame.newAcquisition)){
            node += "";
        }else if(isWorklist == true){
            node += " [hora programada]";
        }else{
            node += " [hora realización]";
        }        
        return node;
    }

}
